
import math

# n = 5
n = 42
pro = 0.5 ** (2*n) # “成功”的概率为0.5
dis = []
for i in range(2*n):
    tep = math.factorial(2 * n) / (math.factorial(i) * math.factorial(2 * n - i)) # 二项式系数计算
    dis.append(tep*pro) # 正好得到i次成功的概率

res = []
for i in range(len(dis)):
    prosum = 0
    for j in range(i+1):
        prosum = prosum + dis[j] # 计算累积概率
    res.append(str(round(math.log10(prosum), 3)))
res = res[::-1] # 列表反向，实现按要求顺序输出

out = ' '.join(res)
print(out)
